/*
 * @Author: 45F
 * @LastEditors: carol
 * @Date: 2019-07-05 17:48:40
 * @LastEditTime: 2019-07-17 11:35:36
 * @LastEditTime: 2019-10-31 10:50:34

 */
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import config from "./config";
import * as mixins from "./mixins";
import * as filters from "./filters";
import "babel-polyfill";
import moment from "moment";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";

import "@/assets/less/index.less";
import "@/assets/font/font.css";
import "@/assets/font/index.less";
import echarts from "echarts";
// import "echarts/extension/bmap/bmap";

Vue.prototype.$echarts = echarts;

// 引入全局mixins
Object.keys(mixins).forEach(key => {
  Vue.mixin(mixins[key]);
});
// 引入全局过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key]);
});

Vue.use(Antd);
Vue.prototype.moment = moment;
Vue.config.productionTip = false;
/**
 * @description 全局注册应用配置
 */
Vue.prototype.$config = config;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
